package 算法题汇总;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class test {
    public static void main(String[] args) throws IOException {
        BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(sc.readLine());
        String[] arr1 = sc.readLine().split(" ");
        int [] arr = new int[n];
        int max = 0;
        int sum = 0;
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(arr1[i]);
            max = Math.max(max,arr[i]);
            sum = sum + arr[i];
        }
        int sum2 = 0;
        int k = max;
        for (; k < 100000; k++) {
            for (int i = 0; i < n; i++) {
                sum2 = sum2 + (k-arr[i]);
            }
            if(sum2 > sum){
                break;
            }
            sum2 = 0;
        }
        System.out.println(k);
    }
}
